/*
 * @(#)TreeNode.java 1.0 2019年1月8日下午5:20:18
 *
 * 
 * Copyright (c) , Inc. All rights reserved.
 */
package com.saturn.config.server.base.dto;

import java.math.BigDecimal;
import java.util.List;

import com.saturn.config.server.base.BaseObject;

/**
 * <dl>
 *    <dt><b>Title:</b></dt>
 *    <dd>
 *    	none
 *    </dd>
 *    <dt><b>Description:</b></dt>
 *    <dd>
 *    	<p>none
 *    </dd>
 * </dl>
 *
 * @author tanks
 * @version 1.0, 2019年1月8日
 * @since tms
 * 
 */
public class TreeNode extends BaseObject {

	private static final long serialVersionUID = 6293920L;
	private String text;
	private String id;
	private boolean leaf;
	//操作ID
	private BigDecimal actionId;
	private String link;
	private BigDecimal resourceType;
	private List<TreeNode> children;
	
	/**
	 * 默认构造方法
	 */
	public TreeNode() {
		
	}
	
	/**
	 * 默认构造方法
	 */
	public TreeNode(String text,String id,boolean leaf,String link) {
		this.text = text;
		this.id = id;
		this.leaf = leaf;
		this.link = link;
	}
	
	/**
	 * 
	 * @param text
	 * @param id
	 * @param leaf
	 * @param actionId
	 * @param link
	 */
	public TreeNode(String text, String id, boolean leaf, BigDecimal actionId,String link) {
		this.text = text;
		this.id = id;
		this.leaf = leaf;
		this.actionId = actionId;
		this.link = link;
	}

	/**
	 * @return the text
	 */
	public String getText() {
		return text;
	}

	/**
	 * @param text the text to set
	 */
	public void setText(String text) {
		this.text = text;
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the leaf
	 */
	public boolean isLeaf() {
		return leaf;
	}

	/**
	 * @param leaf the leaf to set
	 */
	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}

	/**
	 * @return the link
	 */
	public String getLink() {
		return link;
	}

	/**
	 * @param link the link to set
	 */
	public void setLink(String link) {
		this.link = link;
	}

	/**
	 * @return the children
	 */
	public List<TreeNode> getChildren() {
		return children;
	}

	/**
	 * @param children the children to set
	 */
	public void setChildren(List<TreeNode> children) {
		this.children = children;
	}

	/**
	 * @return the actionId
	 */
	public BigDecimal getActionId() {
		return actionId;
	}

	/**
	 * @param actionId the actionId to set
	 */
	public void setActionId(BigDecimal actionId) {
		this.actionId = actionId;
	}

	/**
	 * @return the resourceType
	 */
	public BigDecimal getResourceType() {
		return resourceType;
	}

	/**
	 * @param resourceType the resourceType to set
	 */
	public void setResourceType(BigDecimal resourceType) {
		this.resourceType = resourceType;
	}
	
	
	
}
